package com.atguigu.gulimall.mudan.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;

import com.atguigu.gulimall.mudan.dao.MudanDao;
import com.atguigu.gulimall.mudan.entity.MudanEntity;
import com.atguigu.gulimall.mudan.service.MudanService;


@Service("mudanService")
public class MudanServiceImpl extends ServiceImpl<MudanDao, MudanEntity> implements MudanService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MudanEntity> page = this.page(
                new Query<MudanEntity>().getPage(params),
                new QueryWrapper<MudanEntity>()
        );

        return new PageUtils(page);
    }

}